package com.chenfubing.ps.entity.result;

/**
 * @MethodName:
 * @Description: TODO
 * @Param:
 * @Return:
 * @Author: chenfubing
 * @Date: 2020/1/16
 **/
public enum ErrorCode {
    /**
     * 通用错误代码
     */
    SUCCESS(200, "成功"),
    SERVICE_ERROR(500,"服务器开小差了"),
    OPERATION_ERROR(500, "操作有误"),
    PK_CAR_EXISTS(20013, "车辆已被绑定"),
    PK_CAR_NOT_EXISTS(20014, "车辆未绑定"),
    PK_PARKING_SPACE_NOT_EXISTS(20015, "车位不存在"),
    PK_PARKING_SPACE_EXISTS(20016, "车位已存在"),
    PARAMETER_NULL_ERROR(10002,"参数不能为空"),

    ;



    private int code;
    private String msg;

    ErrorCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
